﻿using FinalYear.Helpers;
using FinalYear.iNavigate.Properties;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Media;
using System.Text;

namespace FinalYear.iNavigate.Classes
{
    public class CollisionWarning
    {
        private SoundPlayer simpleSound;

        public CollisionWarning()
        {
            this.simpleSound = new SoundPlayer();
        }

        public void PlayWarning(SCREENREGION emptyRegion)
        {
            simpleSound.Stream = (emptyRegion == SCREENREGION.LEFT) ? Resources.obstacleLeft : Resources.obstacleRight;
            simpleSound.Play();
        }
    }
}
